package com.qiaofang.mapper;

import com.qiaofang.common.model.PageDTO;
import com.qiaofang.common.tkmapper.BaseMapper;
import com.qiaofang.dto.ReportDTO;
import com.qiaofang.dto.SmsHistoryDTO;
import com.qiaofang.entity.ApiLog;
import com.qiaofang.entity.Report;
import com.qiaofang.entity.SmsHistory;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface SmsHistoryMapper extends BaseMapper<SmsHistory> {

    List<SmsHistory> listSmsHistorySummary(@Param("smsHistoryDto") SmsHistoryDTO smsHistoryDTO);

    Long listSmsHistoryFailureCount(@Param("smsHistoryDto") SmsHistoryDTO smsHistoryDTO);

    List<SmsHistory> listSmsHistoryFailure(@Param("smsHistoryDto") SmsHistoryDTO smsHistoryDTO, @Param("page") PageDTO page);

}
